home *** CD-ROM | disk | FTP | other *** search
/ Aminet 52 / Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso / Aminet / dev / gg / ncurses-5.3.lha / ncurses-5.3 / panel / Makefile < prev    next >
Makefile  |  2002-10-24  |  9KB  |  323 lines

  1. # $Id: Makefile.in,v 1.41 2002/01/20 00:41:18 tom Exp $
  2. ##############################################################################
  3. # Copyright (c) 1998,1999,2000,2001,2002 Free Software Foundation, Inc.      #
  4. #                                                                            #
  5. # Permission is hereby granted, free of charge, to any person obtaining a    #
  6. # copy of this software and associated documentation files (the "Software"), #
  7. # to deal in the Software without restriction, including without limitation  #
  8. # the rights to use, copy, modify, merge, publish, distribute, distribute    #
  9. # with modifications, sublicense, and/or sell copies of the Software, and to #
  10. # permit persons to whom the Software is furnished to do so, subject to the  #
  11. # following conditions:                                                      #
  12. #                                                                            #
  13. # The above copyright notice and this permission notice shall be included in #
  14. # all copies or substantial portions of the Software.                        #
  15. #                                                                            #
  16. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
  17. # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,   #
  18. # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL    #
  19. # THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER      #
  20. # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING    #
  21. # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER        #
  22. # DEALINGS IN THE SOFTWARE.                                                  #
  23. #                                                                            #
  24. # Except as contained in this notice, the name(s) of the above copyright     #
  25. # holders shall not be used in advertising or otherwise to promote the sale, #
  26. # use or other dealings in this Software without prior written               #
  27. # authorization.                                                             #
  28. ##############################################################################
  29. #
  30. # Author: Thomas E. Dickey <dickey@clark.net> 1996,1997
  31. #
  32. # Makefile for panels source code.
  33. #
  34. # This makes the following:
  35. #    libraries (normal/debug/profile/shared)
  36. #
  37. # The variable 'srcdir' refers to the source-distribution, and can be set with
  38. # the configure script by "--srcdir=DIR".
  39. #
  40. # The rules are organized to produce the libraries for the configured models,
  41.  
  42. # turn off _all_ suffix rules; we'll generate our own
  43. .SUFFIXES:
  44.  
  45. SHELL        = /bin/sh
  46. THIS        = Makefile
  47.  
  48. MODEL        = normal
  49. DESTDIR        = 
  50. srcdir        = .
  51. prefix        = /gg
  52. exec_prefix    = ${prefix}
  53. bindir        = ${exec_prefix}/bin
  54. libdir        = ${exec_prefix}/lib
  55. includedir    = $(prefix)/include/ncurses
  56. datadir        = ${prefix}/share
  57.  
  58. LIBTOOL        = 
  59.  
  60. INSTALL        = /bin/install -c
  61. INSTALL_LIB    = /bin/install -c -m 644
  62. INSTALL_PROG    = @INSTALL_PROG@
  63. INSTALL_DATA    = ${INSTALL} -m 644
  64.  
  65. AR        = ar
  66. AR_OPTS        = rv
  67. AWK        = gawk
  68. LD        = ld
  69. LN_S        = ln -s
  70.  
  71. CC        = gcc
  72. CPP        = gcc -E
  73. CFLAGS        = -O2 -fomit-frame-pointer -m68020-60 -ffast-math 
  74.  
  75. CPPFLAGS    =  -DNDEBUG -I. -I../include -I$(includedir) -I../ncurses \
  76.           -DHAVE_CONFIG_H
  77.  
  78. CCFLAGS        = $(CPPFLAGS) $(CFLAGS)
  79.  
  80. CFLAGS_LIBTOOL    = $(CCFLAGS)
  81. CFLAGS_NORMAL    = $(CCFLAGS)
  82. CFLAGS_DEBUG    = $(CCFLAGS) -g -DTRACE
  83. CFLAGS_PROFILE    = $(CCFLAGS) -pg
  84. CFLAGS_SHARED    = $(CCFLAGS) unknown
  85.  
  86. CFLAGS_DEFAULT    = $(CFLAGS_NORMAL)
  87.  
  88. LINK        = $(LIBTOOL) $(CC)
  89. LDFLAGS        = -s -lm  
  90.  
  91. SHLIB_DIRS    = -L../lib
  92. SHLIB_LIST    = $(SHLIB_DIRS) -lncurses 
  93.  
  94. MK_SHARED_LIB    = echo unknown
  95.  
  96. NCURSES_MAJOR    = 5
  97. NCURSES_MINOR    = 3
  98. REL_VERSION    = 5.3
  99. ABI_VERSION    = 5
  100.  
  101. RANLIB        = ranlib
  102.  
  103. IMPORT_LIB    = 
  104. SHARED_LIB    = 
  105. LIBRARIES    =  ../lib/libpanel.a
  106.  
  107. LINT        = 
  108. LINT_OPTS    = 
  109. LINT_LIBS    = -lpanel -lncurses 
  110.  
  111. AUTO_SRC    = \
  112.         ../include/panel.h
  113.  
  114. ################################################################################
  115. all \
  116. libs \
  117. install ::    $(AUTO_SRC) $(LIBRARIES)
  118.  
  119. sources:    $(AUTO_SRC)
  120.  
  121. $(DESTDIR)$(bindir) \
  122. $(DESTDIR)$(libdir) :
  123.     sh $(srcdir)/../mkinstalldirs $@
  124.  
  125. # make a copy to simplify include-paths while still keeping panel's include
  126. # file in this directory.
  127. ../include/panel.h : $(srcdir)/panel.h
  128.     -rm -f $@
  129.     cp $(srcdir)/panel.h $@
  130.  
  131. PANEL_PRIV_H = \
  132.     $(srcdir)/panel.priv.h \
  133.     $(srcdir)/panel.h
  134.  
  135. tags:
  136.     ctags *.[ch]
  137.  
  138. #TAGS:
  139. #    etags *.[ch]
  140.  
  141. mostlyclean ::
  142.     -rm -f core tags TAGS *~ *.bak *.i *.ln *.atac trace
  143.  
  144. clean :: mostlyclean
  145.     -rm -f $(AUTO_SRC)
  146.  
  147. distclean :: clean
  148.     -rm -f Makefile
  149.  
  150. realclean :: distclean
  151.  
  152. ###############################################################################
  153. # The remainder of this file is automatically generated during configuration
  154. ###############################################################################
  155.  
  156. # generated by mk-0th.awk
  157.  
  158. .SUFFIXES: .c .cc .h .i .ii
  159. .c.i :
  160.     $(CPP) $(CPPFLAGS) $< >$@
  161. .cc.ii :
  162.     $(CPP) $(CPPFLAGS) $< >$@
  163. .h.i :
  164.     $(CPP) $(CPPFLAGS) $< >$@
  165.  
  166. C_SRC = \
  167.     $(srcdir)/panel.c \
  168.     $(srcdir)/p_above.c \
  169.     $(srcdir)/p_below.c \
  170.     $(srcdir)/p_bottom.c \
  171.     $(srcdir)/p_delete.c \
  172.     $(srcdir)/p_hide.c \
  173.     $(srcdir)/p_hidden.c \
  174.     $(srcdir)/p_move.c \
  175.     $(srcdir)/p_new.c \
  176.     $(srcdir)/p_replace.c \
  177.     $(srcdir)/p_show.c \
  178.     $(srcdir)/p_top.c \
  179.     $(srcdir)/p_update.c \
  180.     $(srcdir)/p_user.c \
  181.     $(srcdir)/p_win.c
  182.  
  183. # Producing llib-lpanel is time-consuming, so there's no direct-dependency for
  184. # it in the lintlib rule.  We'll only remove in the cleanest setup.
  185. clean ::
  186.     rm -f llib-lpanel.*
  187.  
  188. realclean ::
  189.     rm -f llib-lpanel
  190.  
  191. llib-lpanel : $(C_SRC)
  192.     cproto -a -l -DLINT $(CPPFLAGS) $(C_SRC) >$@
  193.  
  194. lintlib :
  195.     sh $(srcdir)/../misc/makellib panel $(CPPFLAGS)
  196. lint :
  197.     $(LINT) $(LINT_OPTS) $(CPPFLAGS) $(C_SRC) $(LINT_LIBS)
  198.  
  199. # generated by mk-1st.awk
  200.  
  201. NORMAL_OBJS = \
  202.     ../objects/panel.o \
  203.     ../objects/p_above.o \
  204.     ../objects/p_below.o \
  205.     ../objects/p_bottom.o \
  206.     ../objects/p_delete.o \
  207.     ../objects/p_hide.o \
  208.     ../objects/p_hidden.o \
  209.     ../objects/p_move.o \
  210.     ../objects/p_new.o \
  211.     ../objects/p_replace.o \
  212.     ../objects/p_show.o \
  213.     ../objects/p_top.o \
  214.     ../objects/p_update.o \
  215.     ../objects/p_user.o \
  216.     ../objects/p_win.o
  217.  
  218. $(NORMAL_OBJS) : ../include/ncurses_cfg.h ./panel.priv.h
  219.  
  220. ../lib/libpanel.a : $(NORMAL_OBJS)
  221.     $(AR) $(AR_OPTS) $@ $?
  222.     $(RANLIB) $@
  223.  
  224. install \
  225. install.libs \
  226. install.panel :: $(DESTDIR)$(libdir) ../lib/libpanel.a
  227.     @echo installing ../lib/libpanel.a as $(DESTDIR)$(libdir)/libpanel.a
  228.     $(INSTALL_DATA) ../lib/libpanel.a $(DESTDIR)$(libdir)/libpanel.a
  229.     $(RANLIB) $(DESTDIR)$(libdir)/libpanel.a
  230.  
  231. uninstall \
  232. uninstall.libs \
  233. uninstall.panel ::
  234.     @echo uninstalling $(DESTDIR)$(libdir)/libpanel.a
  235.     -@rm -f $(DESTDIR)$(libdir)/libpanel.a
  236.  
  237. clean ::
  238.     -rm -f ../lib/libpanel.a
  239.  
  240. mostlyclean::
  241.     -rm -f $(NORMAL_OBJS)
  242.  
  243. # generated by mk-2nd.awk
  244.  
  245.  
  246. ../objects/panel.o :    $(srcdir)/panel.c \
  247.             $(PANEL_PRIV_H)
  248.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../panel/panel.c
  249.  
  250. ../objects/p_above.o :    $(srcdir)/p_above.c \
  251.             $(PANEL_PRIV_H)
  252.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../panel/p_above.c
  253.  
  254. ../objects/p_below.o :    $(srcdir)/p_below.c \
  255.             $(PANEL_PRIV_H)
  256.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../panel/p_below.c
  257.  
  258. ../objects/p_bottom.o :    $(srcdir)/p_bottom.c \
  259.             $(PANEL_PRIV_H)
  260.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../panel/p_bottom.c
  261.  
  262. ../objects/p_delete.o :    $(srcdir)/p_delete.c \
  263.             $(PANEL_PRIV_H)
  264.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../panel/p_delete.c
  265.  
  266. ../objects/p_hide.o :    $(srcdir)/p_hide.c \
  267.             $(PANEL_PRIV_H)
  268.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../panel/p_hide.c
  269.  
  270. ../objects/p_hidden.o :    $(srcdir)/p_hidden.c \
  271.             $(PANEL_PRIV_H)
  272.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../panel/p_hidden.c
  273.  
  274. ../objects/p_move.o :    $(srcdir)/p_move.c \
  275.             $(PANEL_PRIV_H)
  276.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../panel/p_move.c
  277.  
  278. ../objects/p_new.o :    $(srcdir)/p_new.c \
  279.             $(PANEL_PRIV_H)
  280.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../panel/p_new.c
  281.  
  282. ../objects/p_replace.o :    $(srcdir)/p_replace.c \
  283.             $(PANEL_PRIV_H)
  284.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../panel/p_replace.c
  285.  
  286. ../objects/p_show.o :    $(srcdir)/p_show.c \
  287.             $(PANEL_PRIV_H)
  288.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../panel/p_show.c
  289.  
  290. ../objects/p_top.o :    $(srcdir)/p_top.c \
  291.             $(PANEL_PRIV_H)
  292.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../panel/p_top.c
  293.  
  294. ../objects/p_update.o :    $(srcdir)/p_update.c \
  295.             $(PANEL_PRIV_H)
  296.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../panel/p_update.c
  297.  
  298. ../objects/p_user.o :    $(srcdir)/p_user.c \
  299.             $(PANEL_PRIV_H)
  300.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../panel/p_user.c
  301.  
  302. ../objects/p_win.o :    $(srcdir)/p_win.c \
  303.             $(PANEL_PRIV_H)
  304.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../panel/p_win.c
  305.  
  306. $(DESTDIR)$(includedir) :
  307.     sh $(srcdir)/../mkinstalldirs $@
  308.  
  309. install \
  310. install.libs \
  311. install.includes :: $(AUTO_SRC) $(DESTDIR)$(includedir) \
  312.         $(srcdir)/panel.h
  313.     @ (cd $(DESTDIR)$(includedir) && rm -f panel.h) ; ../headers.sh $(INSTALL_DATA) $(DESTDIR)$(includedir) $(srcdir) $(srcdir)/panel.h
  314.  
  315. uninstall \
  316. uninstall.libs \
  317. uninstall.includes ::
  318.     -@ (cd $(DESTDIR)$(includedir) && rm -f panel.h)
  319. depend : $(AUTO_SRC)
  320.     makedepend -- $(CPPFLAGS) -- $(C_SRC)
  321.  
  322. # DO NOT DELETE THIS LINE -- make depend depends on it.
  323.